package com.micro.plugins.datasource.annotation;

import java.lang.annotation.*;


/**
 * <h1>数据源注解</h1>
 * @author LevelCoder
 * @version V1.0.0
 * @email LevelCoder@126.com
 * @date 2020/4/29
 */
@Target({ElementType.METHOD, ElementType.TYPE, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface DataSource {

    /**
     * <h2>数据库的类别 主库:master 从库:slave 默认主库master</h2>
     * @return
     */
    String value() default "master";
}
